package com.twu.biblioteca;

import java.util.Arrays;
import java.util.List;

public class BookCollection extends Collection {
    List<Book> books;
    String FORMAT = "%-30s%-30s%-30s\n";

    BookCollection(Book... books) {
        super(books);
        this.books = Arrays.asList(books);
    }

    @Override
    protected String getItemName() {
        return "books";
    }

    @Override
    public String getTitles() {
        return String.format(FORMAT, "Name", "Author", "Year");
    }
}
